﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace H2o
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            bool CreateNew;
            System.Threading.Mutex mutex = new System.Threading.Mutex(false, Application.ProductName, out CreateNew);


            if (!CreateNew)
            {
                System.Windows.Forms.MessageBox.Show("程序已运行");
                Application.Exit();
                return;
            }
            else
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new Main());
            } 
        }
    }
}
